#!/bin/bash
set -e
sed -i 's/quiet/nowatchdog/g' /etc/default/grub
# sed -i 's/loglevel=3/loglevel=5/g' /etc/default/grub
# sed -i 's/GRUB_DEFAULT=0/GRUB_DEFAULT=saved/g' /etc/default/grub
# sed -i 's/#GRUB_SAVEDEFAULT=true/GRUB_SAVEDEFAULT=true/g' /etc/default/grub
sed -i 's/#GRUB_DISABLE_OS_PROBER=false/GRUB_DISABLE_OS_PROBER=false/g' /etc/default/grub
sed -i 's/#GRUB_DISABLE_SUBMENU=y/GRUB_DISABLE_SUBMENU=y/g' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg